Skip to content

fix(execution): keep a run that ends during delete from writing its record again - #811

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/end-during-delete
Dec 3, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/end-during-delete

Conversation

@harenome

@harenome harenome commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #777

What

A run ending during Delete launch rewrote run.json: a lone, unrestored file holding its name.

  • Delete removes the folder under the run's lock, then marks the run deleted; _save skips it. A refused delete marks nothing.
  • A cap change on a deleted run is refused (409). A rerun during Delete is refused at once.
  • _fail ends and saves under the lock, as _done does.
  • Delete unregisters only the runs it found: a new launch of the name keeps its record.

Touches

app/nullius/execution.py, app/web/execute.py.

Verified

  • Run held in its last save, Delete meanwhile. Before: ['run.json']. After: no folder.
  • Four new tests; the overlap test no longer passes by timeout.
  • Backend and route suites pass.

Risk

Saves and Stop wait while a run's folder is removed.

Agents

Claude Code, Opus 5.5; Codex, GPT-6.2-Astra (review)

@harenome
harenome marked this pull request as ready for review December 3, 2026 21:35
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 3, 2026
@harenome
harenome merged commit 1a36d72 into ThinkFlowLab:main Dec 3, 2026
4 checks passed
@harenome
harenome deleted the fix/end-during-delete branch December 3, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A run that ends while Delete launch removes it comes back as a folder holding only run.json

1 participant